package com.fantasy.easy.biz.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fantasy.easy.biz.domain.BizData;
import com.fantasy.easy.biz.service.BizDataService;
import com.fantasy.easy.biz.mapper.BizDataMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 *
 */
@Service
public class BizDataServiceImpl extends ServiceImpl<BizDataMapper, BizData>
    implements BizDataService{

    @Resource
    BizDataMapper bizDataMapper;

    @Override
    public int insert(BizData bizData) {
        return bizDataMapper.updateById(bizData);
    }

    @Override
    public IPage<BizData> queryAll(BizData bizData, Page<BizData> p) {
        return bizDataMapper.selectPage(p,new QueryWrapper<>(bizData));
    }
}




